﻿namespace ChangchunPublicInterfacs;

/// <summary>
/// 用户账户服务
/// </summary>
public interface IUserAccountServices
{
    /// <summary>
    /// 验证登录信息
    /// </summary>
    /// <param name="user">用户信息</param>
    /// <returns>登录结果</returns>
    Task<LoginResult> LoginAsync(User user);

    /// <summary>
    /// 更改密码
    /// </summary>
    /// <param name="user">用户登录信息</param>
    /// <param name="newPassword">新密码</param>
    /// <returns>操作结果</returns>
    Task<AlterPasswordResult> AlterPasswordAsync(User user, string newPassword);

    /// <summary>
    /// 注册账户
    /// </summary>
    /// <param name="user">用户注册信息</param>
    /// <returns>注册结果</returns>
    Task<RegisterResult> RegisterAsync(User user);
}
